﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace MyPSDALayer
{
    [MetadataType(typeof(PaymentMetaData))]
    public partial class Payment
    {
        private class PaymentMetaData
        {
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "支付方式名")]
            public string PaymentName { get; set; }
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "帐号")]
            public string AccoutNo { get; set; }
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "姓名")]
            public string Name { get; set; }
            [Display(Name = "开户银行")]
            public string OBank { get; set; }
            [Display(Name="支付连接")]
            public string PayUrl { get; set; }
        }
    }
}
